package com.esd.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		String regular = "http://spjc.bjmtg.gov.cn/hrapp/ProcessType/ProcessSortServlet \\w*";
//		String url = "http://www.ncmram.cn/web-cl-pc/pages/web-main.html#/construction////";
		String url1 = "http://www.bjmtg.gov.cn/was5/web/search?channelid=237399";
//		String  m = Md5.getMd5(url1);
//		String str = "/iacindex";
//		int last = url1.lastIndexOf("?");
//		System.out.println("last:"+last);
//		//cx20171116
//		int denghao =  url1.lastIndexOf("=");
//		System.out.println("denghao:"+denghao);
//		if (last != -1) {
//			if(denghao == -1 || last > denghao){
//				url1 = url1.substring(0, last);
//			}	
//		}
		String url ="http://spjc.bjmtg.gov.cn/publicaction?search1=0&operation=listPolicy&fParm=shouye";
   String regular = "http://spjc.bjmtg.gov.cn/publicaction.*search1=0&operation=listPolicy&fParm=shouye";
		Pattern p = Pattern.compile(regular);
		Matcher m = p.matcher(url);
		if (m.matches()) {
			System.out.println(true);
		}
		
	}
}
